﻿using System.Net.Sockets;
using SocketCore.Network;

namespace SocketCore.Exception
{
    public class SendException : SocketException
    {
        private SocketError error;
        private IoSession session;

        public SendException()
        {
        }

        public SendException(IoSession session)
        {
            this.session = session;
        }

        public SendException(IoSession session, SocketError error)
        {
            this.session = session;
            this.error = error;
        }

        public SocketError Error
        {
            get{    return error;   }
        }

        public IoSession Session
        {
            get{    return session; }
        }
    }
}
